home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 401-425 / disk_407 / flex / changes < prev    next >
Text File  |  1992-05-06  |  11KB  |  298 lines

  1. Changes between 2.3 (full) release of 28Jun90 and 2.2 (alpha) release:
  2.  
  3.     User-visible:
  4.  
  5.     - A lone <<EOF>> rule (that is, one which is not qualified with
  6.       a list of start conditions) now specifies the EOF action for
  7.       *all* start conditions which haven't already had <<EOF>> actions
  8.       given.  To specify an end-of-file action for just the initial
  9.       state, use <INITIAL><<EOF>>.
  10.  
  11.     - -d debug output is now contigent on the global yy_flex_debug
  12.       being set to a non-zero value, which it is by default.
  13.  
  14.     - A new macro, YY_USER_INIT, is provided for the user to specify
  15.       initialization action to be taken on the first call to the
  16.       scanner.  This action is done before the scanner does its
  17.       own initialization.
  18.  
  19.     - yy_new_buffer() has been added as an alias for yy_create_buffer()
  20.  
  21.     - Comments beginning with '#' and extending to the end of the line
  22.       now work, but have been deprecated (in anticipation of making
  23.       flex recognize #line directives).
  24.  
  25.     - The funky restrictions on when semi-colons could follow the
  26.       YY_NEW_FILE and yyless macros have been removed.  They now
  27.       behave identically to functions.
  28.  
  29.     - A bug in the sample redefinition of YY_INPUT in the documentation
  30.       has been corrected.
  31.  
  32.     - A bug in the sample simple tokener in the documentation has
  33.       been corrected.
  34.  
  35.     - The documentation on the incompatibilities between flex and
  36.       lex has been reordered so that the discussion of yylineno
  37.       and input() come first, as it's anticipated that these will
  38.       be the most common source of headaches.
  39.  
  40.  
  41.     Things which didn't used to be documented but now are:
  42.  
  43.     - flex interprets "^foo|bar" differently from lex.  flex interprets
  44.       it as "match either a 'foo' or a 'bar', providing it comes at the
  45.       beginning of a line", whereas lex interprets it as "match either
  46.       a 'foo' at the beginning of a line, or a 'bar' anywhere".
  47.  
  48.     - flex initializes the global "yyin" on the first call to the
  49.       scanner, while lex initializes it at compile-time.
  50.  
  51.     - yy_switch_to_buffer() can be used in the yywrap() macro/routine.
  52.  
  53.     - flex scanners do not use stdio for their input, and hence when
  54.       writing an interactive scanner one must explictly call fflush()
  55.       after writing out a prompt.
  56.  
  57.     - flex scanner can be made reentrant (after a fashion) by using
  58.       "yyrestart( yyin );".  This is useful for interactive scanners
  59.       which have interrupt handlers that long-jump out of the scanner.
  60.  
  61.     - a defense of why yylineno is not supported is included, along
  62.       with a suggestion on how to convert scanners which rely on it.
  63.  
  64.  
  65.     Other changes:
  66.  
  67.     - Prototypes and proper declarations of void routines have
  68.       been added to the flex source code, courtesy of Kevin B. Kenny.
  69.  
  70.     - Routines dealing with memory allocation now use void* pointers
  71.       instead of char* - see Makefile for porting implications.
  72.  
  73.     - Error-checking is now done when flex closes a file.
  74.  
  75.     - Various lint tweaks were added to reduce the number of gripes.
  76.  
  77.     - Makefile has been further parameterized to aid in porting.
  78.  
  79.     - Support for SCO Unix added.
  80.  
  81.     - Flex now sports the latest & greatest UC copyright notice
  82.       (which is only slightly different from the previous one).
  83.  
  84.     - A note has been added to flexdoc.1 mentioning work in progress
  85.       on modifying flex to generate straight C code rather than a
  86.       table-driven automaton, with an email address of whom to contact
  87.       if you are working along similar lines.
  88.  
  89.  
  90. Changes between 2.2 Patch #3 (30Mar90) and 2.2 Patch #2:
  91.  
  92.     - fixed bug which caused -I scanners to bomb
  93.  
  94.  
  95. Changes between 2.2 Patch #2 (27Mar90) and 2.2 Patch #1:
  96.  
  97.     - fixed bug writing past end of input buffer in yyunput()
  98.     - fixed bug detecting NUL's at the end of a buffer
  99.  
  100.  
  101. Changes between 2.2 Patch #1 (23Mar90) and 2.2 (alpha) release:
  102.  
  103.     - Makefile fixes: definition of MAKE variable for systems
  104.       which don't have it; installation of flexdoc.1 along with
  105.       flex.1; fixed two bugs which could cause "bigtest" to fail.
  106.  
  107.     - flex.skel fix for compiling with g++.
  108.  
  109.     - README and flexdoc.1 no longer list an out-of-date BITNET address
  110.       for contacting me.
  111.  
  112.     - minor typos and formatting changes to flex.1 and flexdoc.1.
  113.  
  114.  
  115. Changes between 2.2 (alpha) release of March '90 and previous release:
  116.  
  117.     User-visible:
  118.  
  119.     - Full user documentation now available.
  120.  
  121.     - Support for 8-bit scanners.
  122.  
  123.     - Scanners now accept NUL's.
  124.  
  125.     - A facility has been added for dealing with multiple
  126.       input buffers.
  127.  
  128.     - Two manual entries now.  One which fully describes flex
  129.       (rather than just its differences from lex), and the
  130.       other for quick(er) reference.
  131.  
  132.     - A number of changes to bring flex closer into compliance
  133.       with the latest POSIX lex draft:
  134.  
  135.         %t support
  136.         flex now accepts multiple input files and concatenates
  137.             them together to form its input
  138.         previous -c (compress) flag renamed -C
  139.         do-nothing -c and -n flags added
  140.         Any indented code or code within %{}'s in section 2 is
  141.             now copied to the output
  142.  
  143.     - yyleng is now a bona fide global integer.
  144.  
  145.     - -d debug information now gives the line number of the
  146.       matched rule instead of which number rule it was from
  147.       the beginning of the file.
  148.  
  149.     - -v output now includes a summary of the flags used to generate
  150.       the scanner.
  151.  
  152.     - unput() and yyrestart() are now globally callable.
  153.  
  154.     - yyrestart() no longer closes the previous value of yyin.
  155.  
  156.     - C++ support; generated scanners can be compiled with C++ compiler.
  157.  
  158.     - Primitive -lfl library added, containing default main()
  159.       which calls yylex().  A number of routines currently living
  160.       in the scanner skeleton will probably migrate to here
  161.       in the future (in particular, yywrap() will probably cease
  162.       to be a macro and instead be a function in the -lfl library).
  163.  
  164.     - Hexadecimal (\x) escape sequences added.
  165.  
  166.     - Support for MS-DOS, VMS, and Turbo-C integrated.
  167.  
  168.     - The %used/%unused operators have been deprecated.  They
  169.       may go away soon.
  170.  
  171.  
  172.     Other changes:
  173.  
  174.     - Makefile enhanced for easier testing and installation.
  175.     - The parser has been tweaked to detect some erroneous
  176.       constructions which previously were missed.
  177.     - Scanner input buffer overflow is now detected.
  178.     - Bugs with missing "const" declarations fixed.
  179.     - Out-of-date Minix/Atari patches provided.
  180.     - Scanners no longer require printf() unless FLEX_DEBUG is being used.
  181.     - A subtle input() bug has been fixed.
  182.     - Line numbers for "continued action" rules (those following
  183.       the special '|' action) are now correct.
  184.     - unput() bug fixed; had been causing problems porting flex to VMS.
  185.     - yymore() handling rewritten to fix bug with interaction
  186.       between yymore() and trailing context.
  187.     - EOF in actions now generates an error message.
  188.     - Bug involving -CFe and generating equivalence classes fixed.
  189.     - Bug which made -CF be treated as -Cf fixed.
  190.     - Support for SysV tmpnam() added.
  191.     - Unused #define's for scanner no longer generated.
  192.     - Error messages which are associated with a particular input
  193.       line are now all identified with their input line in standard
  194.       format.
  195.     - % directives which are valid to lex but not to flex are
  196.       now ignored instead of generating warnings.
  197.     - -DSYS_V flag can now also be specified -DUSG for System V
  198.       compilation.
  199.  
  200.  
  201. Changes between 2.1 beta-test release of June '89 and previous release:
  202.  
  203.     User-visible:
  204.  
  205.     - -p flag generates a performance report to stderr.  The report
  206.       consists of comments regarding features of the scanner rules
  207.       which result in slower scanners.
  208.  
  209.     - -b flag generates backtracking information to lex.backtrack.
  210.       This is a list of scanner states which require backtracking
  211.       and the characters on which they do so.  By adding rules
  212.       one can remove backtracking states.  If all backtracking states
  213.       are eliminated, the generated scanner will run faster.
  214.       Backtracking is not yet documented in the manual entry.
  215.  
  216.     - Variable trailing context now works, i.e., one can have
  217.       rules like "(foo)*/[ \t]*bletch".  Some trailing context
  218.       patterns still cannot be properly matched and generate
  219.       error messages.  These are patterns where the ending of the
  220.       first part of the rule matches the beginning of the second
  221.       part, such as "zx*/xy*", where the 'x*' matches the 'x' at
  222.       the beginning of the trailing context.  Lex won't get these
  223.       patterns right either.
  224.  
  225.     - Faster scanners.
  226.  
  227.     - End-of-file rules.  The special rule "<<EOF>>" indicates
  228.       actions which are to be taken when an end-of-file is
  229.       encountered and yywrap() returns non-zero (i.e., indicates
  230.       no further files to process).  See manual entry for example.
  231.  
  232.     - The -r (reject used) flag is gone.  flex now scans the input
  233.       for occurrences of the string "REJECT" to determine if the
  234.       action is needed.  It tries to be intelligent about this but
  235.       can be fooled.  One can force the presence or absence of
  236.       REJECT by adding a line in the first section of the form
  237.       "%used REJECT" or "%unused REJECT".
  238.  
  239.     - yymore() has been implemented.  Similarly to REJECT, flex
  240.       detects the use of yymore(), which can be overridden using
  241.       "%used" or "%unused".
  242.  
  243.     - Patterns like "x{0,3}" now work (i.e., with lower-limit == 0).
  244.  
  245.     - Removed '\^x' for ctrl-x misfeature.
  246.  
  247.     - Added '\a' and '\v' escape sequences.
  248.  
  249.     - \<digits> now works for octal escape sequences; previously
  250.       \0<digits> was required.
  251.  
  252.     - Better error reporting; line numbers are associated with rules.
  253.  
  254.     - yyleng is a macro; it cannot be accessed outside of the
  255.       scanner source file.
  256.  
  257.     - yytext and yyleng should not be modified within a flex action.
  258.  
  259.     - Generated scanners #define the name FLEX_SCANNER.
  260.  
  261.     - Rules are internally separated by YY_BREAK in lex.yy.c rather
  262.       than break, to allow redefinition.
  263.  
  264.     - The macro YY_USER_ACTION can be redefined to provide an action
  265.       which is always executed prior to the matched rule's action.
  266.     
  267.     - yyrestart() is a new action which can be used to restart
  268.       the scanner after it has seen an end-of-file (a "real" one,
  269.       that is, one for which yywrap() returned non-zero).  It takes
  270.       a FILE* argument indicating a new file to scan and sets
  271.       things up so that a subsequent call to yylex() will start
  272.       scanning that file.
  273.  
  274.     - Internal scanner names all preceded by "yy_"
  275.  
  276.     - lex.yy.c is deleted if errors are encountered during processing.
  277.  
  278.     - Comments may be put in the first section of the input by preceding
  279.       them with '#'.
  280.  
  281.  
  282.  
  283.     Other changes:
  284.  
  285.     - Some portability-related bugs fixed, in particular for machines
  286.       with unsigned characters or sizeof( int* ) != sizeof( int ).
  287.       Also, tweaks for VMS and Microsoft C (MS-DOS), and identifiers all
  288.       trimmed to be 31 or fewer characters.  Shortened file names
  289.       for dinosaur OS's.  Checks for allocating > 64K memory
  290.       on 16 bit'ers.  Amiga tweaks.  Compiles using gcc on a Sun-3.
  291.     - Compressed and fast scanner skeletons merged.
  292.     - Skeleton header files done away with.
  293.     - Generated scanner uses prototypes and "const" for __STDC__.
  294.     - -DSV flag is now -DSYS_V for System V compilation.
  295.     - Removed all references to FTL language.
  296.     - Software now covered by BSD Copyright.
  297.     - flex will replace lex in subsequent BSD releases.
  298.